package Messages;

public class DoorCommand extends Command {
	
	public static final String KEY = "key";
	public static final String ACTION = "action";
	
	public DoorCommand(String key, String action)
	{
		m_context = "door";
		m_renderOrder = new String[]{KEY, ACTION};
		this.m_varList.put(KEY, key);
		this.m_varList.put(ACTION, action);
	}
	
	public DoorCommand(String messageVarList) throws InvalidVarListException
	{
		m_context = "door";
		m_renderOrder = new String[]{KEY, ACTION};
		this.PutStringInVarList(messageVarList);
	}
}
